package com.zscat.mallplus.center.entity;

import java.util.Date;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;

import cn.afterturn.easypoi.excel.annotation.Excel;

/**
 * 个人中心邀请记录对象 center_invite_records
 * 
 * @author Wsen
 * @date 2020-09-21
 */
public class CenterInviteRecords {
	private static final long serialVersionUID = 1L;

	/** 主键id */
	private Long id;

	/** 邀请人id */
	@Excel(name = "邀请人id")
	private Long userId;

	/** 被邀请人id */
	@Excel(name = "被邀请人id")
	private Long inviteId;

	/** 被邀请人昵称 */
	@Excel(name = "被邀请人昵称")
	private String nickName;

	/** 邀请人获得积分 */
	@Excel(name = "邀请人获得积分")
	private Double score;

	private Long storeId;

	/** createTime */
	@Excel(name = "createTime")
	@JsonFormat(pattern = "yyyy-MM-dd")
	private Date createTime;

	/**
	 * 邀请人验证电话
	 */
	@TableField(exist = false)
	private String validatePhone;

	public String getValidatePhone() {
		return validatePhone;
	}

	public void setValidatePhone(String validatePhone) {
		this.validatePhone = validatePhone;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getId() {
		return id;
	}

	public void setUserId(Long userId) {
		this.userId = userId;
	}

	public Long getUserId() {
		return userId;
	}

	public void setInviteId(Long inviteId) {
		this.inviteId = inviteId;
	}

	public Long getInviteId() {
		return inviteId;
	}

	public void setNickName(String nickName) {
		this.nickName = nickName;
	}

	public String getNickName() {
		return nickName;
	}

	public void setScore(Double score) {
		this.score = score;
	}

	public Double getScore() {
		return score;
	}

	public void setStoreId(Long storeId) {
		this.storeId = storeId;
	}

	public Long getStoreId() {
		return storeId;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	@Override
	public String toString() {
		return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE).append("id", getId())
				.append("userId", getUserId()).append("inviteId", getInviteId()).append("nickName", getNickName())
				.append("score", getScore()).append("storeId", getStoreId()).append("createTime", getCreateTime())
				.toString();
	}
}
